<% content_for :sidebar do -%>
<% end -%>

<h1>修改“<%= h @comment.title %>”</h1>
<% form_for :comment, :url => event_comment_path(@event, @comment), :html => {:method => 'put'} do |f| -%>
  <%= render :partial => 'form', :object => f, :locals => {:title => @comment.title} %>
  <p><%= submit_tag "写好了，修改" %> 或者 <%= link_to "返回", event_path(@event) %></p>
<% end -%>